package com.daka.vo.response;

import com.daka.entity.Member;
import lombok.Data;
import lombok.ToString;

/**
 * Created by yangx
 * CreateTime: 2016/9/23 16:52
 */

@SuppressWarnings("unused")
@Data
@ToString
public class MemberResponseVo {

    private String memberID;
    private String volunteerCode;
    private String mobile;
    private String realName;
    private String nickName;
    private String province;
    private String city;
    private String district;
    private Integer volunteerTime;

    public static MemberResponseVo buildVO(Member member) {
        MemberResponseVo vo = new MemberResponseVo();
        vo.setMemberID(member.getMemberID());
        vo.setVolunteerCode(member.getVolunteerCode());
        vo.setMobile(member.getMobile());
        vo.setRealName(member.getRealName());
        vo.setNickName(member.getNickName());
        vo.setProvince(member.getProvince());
        vo.setCity(member.getCity());
        vo.setDistrict(member.getDistrict());
        vo.setVolunteerTime(member.getVolunteerTime());
        return vo;
    }
}
